package com.zhejiangzhengyuan.municipal_common.entity.vo;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lin_ju
 * Create on 2019/12/30
 */
@Data
public class ActionVo {
    private Long id;
    private String title;
    private List<Two> children;

    @Data
    public static class Two {
        private Long id;
        private String title;
        private List<ActionTitle> children;

        public void addChildren(ActionTitle action) {
            if (this.children == null) {
                this.children = new ArrayList<>();
            }
            this.children.add(action);
        }
    }
    public void addChildren(Two two) {
        if (this.children == null) {
            this.children = new ArrayList<>();
        }
        this.children.add(two);
    }
}
